<?php if(!IS_AJAX){?>
<form action="<?php echo U('Analysis/chart');?>" id="myblockform">
    <div class="panel">
        <header class="panel-heading"> 积分类型 </header>
        <div class="panel-body">
            <div class="icheck" name="block">
                <volist name="integraltype" id="vo">
                    <div style="display:inline-block;">
                 <!--       <div class="radio square-red">-->
                        
                            <div class="icheck line-block normal-check">
                    <div class="minimal-green  single-row">
                            <input type="radio" value="{$vo.id}" <eq name="key" value="0">checked</eq>
                            name="grade_type">
                            <label>{$vo.remark}</label>
                      	  </div>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
    </div>
    <div class="panel">
        <header class="panel-heading"> 积分来源 </header>
        <div class="panel-body icheck"  name="block">
            <volist name="taskform" id="vo">
        <!--        <div class="square-red">
                    <input type="checkbox" checked name="dataform[]" value="{$vo.id}" />-->
                    <div class="icheck line-block normal-check">
                    <div class="minimal-green  single-row">
                    <input type="checkbox" checked name="dataform[]" value="{$vo.id}" />
                <!--    <ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins>-->
                    <label>{$vo.name}</label>
                </div>
                </div>
            </volist>
          <!--  <div class="square-red single-row">-->
               <div class="icheck line-block normal-check">
                    <div class="minimal-green  single-row">
                <input type="checkbox" checked name="dataform[]" value="0" />
                <label>其它</label>
            </div>
             </div>
        </div>
    </div>
</form>
<div id="myblock" style="min-height:800px;">
    <?php } ?>
    <?php if(!IS_AJAX){?>
</div>


<script>
    $('#myblock').ajaxlist();
    $(".icheck[name='block'] input").change(function(e) {
        $('#myblockform').submit();
    });
    $.post("{:U('Analysis/chart')}",function(data){
        $('#myblock').html(data.tbody);
    },'json');
</script>
<?php } ?>

